namespace LoggingLibrary
{
    public static class LoggerFactory
    {
        public static ILogger CreateLogger(string type, string parameter = "")
        {
            return type.ToLower() switch
            {
                "console" => new ConsoleLogger(),
                "file" => new FileLogger(parameter),
                "database" => new DatabaseLogger(parameter),
                _ => throw new ArgumentException("Invalid logger type")
            };
        }
    }
}